import request from '@/utils/request'

// 查询盘点管理列表
export function listInventorySheet(query) {
  return request({
    url: '/wms/wms/inventorySheet/list',
    method: 'get',
    params: query
  })
}

// 查询盘点管理列表
export function listWmsInventory(query) {
  return request({
    url: '/wms/wms/inventorySheet/listWmsInventory',
    method: 'get',
    params: query
  })
}

// 查询盘点管理详细
export function getInventorySheet(inventorySheetUuid) {
  return request({
    url: '/wms/wms/inventorySheet/' + inventorySheetUuid,
    method: 'get'
  })
}


// 查询盘点管理详细
export function getInventorySheetByUuid(inventorySheetUuid) {
  return request({
    url: '/wms/wms/inventorySheet/flag/' + inventorySheetUuid,
    method: 'get'
  })
}

// 查询盘点管理详细
export function getInventorySheetLoss(inventorySheetUuid) {
  return request({
    url: '/wms/wms/inventorySheet/loss/' + inventorySheetUuid,
    method: 'get'
  })
}

// 新增盘点管理
export function addInventorySheet(data) {
  return request({
    url: '/wms/wms/inventorySheet',
    method: 'post',
    data: data
  })
}

// 修改盘点管理
export function updateInventorySheet(data) {
  return request({
    url: '/wms/wms/inventorySheet',
    method: 'put',
    data: data
  })
}

// 删除盘点管理
export function delInventorySheet(inventorySheetUuid) {
  return request({
    url: '/wms/wms/inventorySheet/' + inventorySheetUuid,
    method: 'delete'
  })
}
